<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class NotificationsController extends Controller
{
	/**
	 * @return mixed
	 * 查看登录者的所有通知
	 */
	public function index()
	{

		$notifications = \Auth::user()->notifications;
		return view('notifications.index', ['notifications' => $notifications]);
	}
}
